from django.urls import path, include
# media文件夹导入模块
from django.views.static import serve
from django.conf import settings

urlpatterns = [
    # 配置media文件夹的路由
    path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT}),
    # django-simple-captcha验证码
    path('captcha/', include('captcha.urls')),
    # 路由分发
    path('api/v1/user/', include('user.urls')),
    path('api/v1/school/', include('school.urls')),
    path('api/v1/server/', include('server_provider.urls')),
    path('api/v1/captcha/', include('captcha_api.urls')),
    path('api/v1/backend/', include('backend.urls')),
]
